package com.bokesoft.yigo.mid.service.example1;

import java.util.ArrayList;

import com.bokesoft.yigo.common.util.TypeConvertor;
import com.bokesoft.yigo.mid.base.DefaultContext;
import com.bokesoft.yigo.mid.connection.IDBManager;
import com.bokesoft.yigo.mid.service.IExtService;

public class UpdateExample4ValueService implements IExtService {

	@Override
	public Object doCmd(DefaultContext context, ArrayList<Object> paras) throws Throwable {
		long oid = TypeConvertor.toLong(paras.get(0));
		String value1 = TypeConvertor.toString(paras.get(1));
		IDBManager db = context.getDBManager();
		String sql = "update Example4Head set Value1=? where OID=?";
		db.execPrepareUpdate(sql, value1, oid);
		return true;
	}

}
